package com.ys.fmms.util;

import lombok.Getter;

/**
 * 统一返回结果状态信息类
 */
@Getter
public enum ResultCodeEnum {
    SUCCESS(200, "成功"),

    FAIL(201, "失败"),

    LOGIN_ERROR(207, "用户名或密码错误"),

    CODE_ERROR(223, "验证码失效或输入有误!"),

    TOKEN_ERROR(224, "Token已失效!"),

    ACCOUNT_ERROR(205,"账户已禁用，请联系管理员"),

    SERVICE_ERROR(202, "服务异常"),

    ILLEGAL_REQUEST(204, "非法请求"),

    ARGUMENT_VALID_ERROR(206, "参数校验错误"),

    CHECK_PASSWORD_ERROR(209,"密码输入有误"),

    LOGIN_AUTH(208, "未登陆"),

    PERMISSION(209, "没有权限"),

    SECKILL_ILLEGAL(217, "请求不合法"),

    LOGIN_CODE(222, "长时间未操作,会话已失效,请刷新页面后重试!");


    private Integer code;

    private String message;

     ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
